﻿using System;
using System.Web.UI;
using VitCode.Castle.DataAccess;
using VitCode.Web.UI.WebControls;


namespace CRS.Web.BackStageManagement
{
    public partial class MainTop : VcPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(GenericContext.CurrUserCode))
                labelCode.Text = GenericContext.CurrUserCode;
            if (!String.IsNullOrEmpty(GenericContext.CurrUserName))
                labelName.Text = Server.UrlDecode(GenericContext.CurrUserName);
        }

        protected void btnUpdatePassword_Click(object sender, EventArgs e)
        {
            var win = new Window(Page, "密码修改")
            {
                Height = 260,
                Width = 460,
                Scrollbars = true,
                Status = true,
                Location = true
            };
            win.ShowModalDialog("../BackStageManagement/PassSelf.aspx?Type=Self", new string[] { "hdCheckInfo" });
        }
    }
}
